home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2186 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  978 b 

  1. Path: news.ucdavis.edu!dale!ez058306
  2. From: ez058306@dale.ucdavis.edu (Phillip Geiger)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: cin and floats
  5. Date: 14 Jan 1996 06:49:25 GMT
  6. Organization: University of California, Davis
  7. Message-ID: <4da91l$p0t@mark.ucdavis.edu>
  8. References: <4d9d0g$5s0@sol.zynet.net>
  9. NNTP-Posting-Host: dale.ucdavis.edu
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Damage (damage@nashuauk.zynet.co.uk) wrote:
  13. : HELP!  I can't seem to use "cin" to input into floating point numbers.
  14. : Whenever I enter a decimal number I just get "Floating Point
  15. : Overflow".  Integers are fine, it's also fine if I enter whole number
  16. : into the float variable (and yes I'm positive that I've declared the
  17. : variable correctly).
  18.     ...
  19.  
  20. I have the *exact* same problem.  Borland C++ 4.51 running under Windows 
  21. 95.  (I asked one of my cs TAs about it and he started cracking jokes 
  22. about my Pentium 90, then he said he had no clue.)
  23.  
  24. Anybody?  Anybody?
  25.  
  26.  
  27.  
  28. --
  29. Phil Geiger
  30. pggeiger@ucdavis.edu
  31.